home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / others / ole_101.zip / SCHMOO.ZIP / POLYLINE.H < prev    next >
Text File  |  1992-04-13  |  1KB  |  47 lines

  1. /*
  2.  * POLYLINE.H
  3.  *
  4.  * Definitions and function prototypes for the PolyLine window class.
  5.  *
  6.  * Copyright(c) Microsoft Corp. 1992 All Rights Reserved
  7.  */
  8.  
  9.  
  10. //Messages
  11. #define PLM_RECTSET         WM_USER
  12. #define PLM_POLYLINESET     WM_USER+1
  13. #define PLM_POLYLINEGET     WM_USER+2
  14. #define PLM_POLYLINENEW     WM_USER+3
  15. #define PLM_BITMAPGET       WM_USER+4
  16. #define PLM_METAFILEGET     WM_USER+5
  17. #define PLM_METAFILEPICTGET WM_USER+6
  18. #define PLM_BACKUPUNDO      WM_USER+7
  19.  
  20. //Notifications
  21. #define PLN_POINTCHANGE     1
  22. #define PLN_SIZECHANGE      2
  23.  
  24. //Definitions and structures.
  25. #define CPOLYLINEPOINTS     20
  26. #define CBPOLYLINEWNDEXTRA  sizeof(HANDLE)
  27.  
  28. typedef struct
  29.     {
  30.     WORD        wVerMaj;                //Major version number.
  31.     WORD        wVerMin;                //Minor version number.
  32.     WORD        cPoints;                //Number of points.
  33.     BOOL        fDrawEntire;            //Flag to draw entire figure.
  34.     RECT        rc;
  35.     POINT       rgpt[CPOLYLINEPOINTS];  //Array of points.
  36.     } POLYLINE;
  37.  
  38. typedef POLYLINE FAR *LPPOLYLINE;
  39. #define CBPOLYLINE sizeof(POLYLINE)
  40.  
  41.  
  42. //Function prototypes.
  43. HWND     FAR PASCAL HPolylineWindowCreate(HWND, HANDLE);
  44. LONG     FAR PASCAL PolylineWndProc(HWND, UINT, UINT, LONG);
  45. DWORD        PASCAL LPolylineUserMessage(HWND, WORD, WORD, LONG, LPPOLYLINE);
  46. void         PASCAL PolylineDraw(HWND, HDC, LPPOLYLINE);
  47.